#include<stdio.h>
#define LanGan        35.0
#define GuoDao        20.0
#define GuoDao_Wid     3.0
#define P        3.14159
class Circle
{
    public:
        Circle(float rr = 0);
        float Area();
        float Circumference();
    private:
        float radius;
};
Circle::Circle(float rr):radius(rr)
{
    printf("constucting Radius = %f\n", radius);
}
float Circle::Area()
{
    return P * radius * radius;
}
float Circle::Circumference()
{
    return P* radius * 2;
}

int main(int argc, char *argv[])
{
    float Radius = 0.0;
    printf("please input Radius: ");
    scanf("%f", &Radius);
    printf("r = %f\n", Radius);

    Circle swim_small(Radius);
    Circle swim_big(Radius + GuoDao_Wid);

    float price_Concrete = 0.0;
    price_Concrete = (swim_big.Area() - swim_small.Area()) * GuoDao ;

    float price_FenceCost = 0.0;
    price_FenceCost = swim_big.Circumference() * LanGan ;

    printf("Concrete  price = %f\n", price_Concrete);
    printf("FenceCost price = %f\n", price_FenceCost);
    return 0;
}
